Repository navigation
chore(deps): update dev dependencies, pnpm and GitHub Actions - #31
Merged
Merged
Conversation
Dev dependencies move to their latest releases that still run on the Node 20 runtime floor the test matrix covers: - vitest / @vitest/coverage-v8 0.34 -> 4.1 (5.x needs Node >= 22.12) - vite 4 -> 8, rollup 3 -> 4, unbuild 2 -> 3 - typescript 5.2 -> 6.0 (7.x is the native compiler, which unbuild's declaration build can't use yet) - @nuxt/kit / @nuxt/schema 3 -> 4, supertest 6 -> 7, @types/supertest 7, lint-staged 17, bumpp 12, @antfu/ni 30, esno 4, simple-git-hooks, node-fetch-native and @types/node within 22.x - playground: nuxt 3.7 -> 4.7, @nuxt/devtools 0.8 -> 4.2 The unused `rimraf` and `@antfu/utils` are removed, as is the redundant `pnpm` dev dependency. pnpm 8 -> 12: the lockfile is v9 now, and pnpm settings move from `.npmrc` to `pnpm-workspace.yaml`. pnpm 12 only runs approved build scripts (`allowBuilds`: esbuild) and enforces the trust policy, which needed an exclusion for `undici-types@6.21.0`. Source / test changes: - Modern lib typings make typed arrays generic; the `CompressionStream` transform is cast like the zlib ones and zlib results are typed as `Buffer<ArrayBuffer>`. - superagent 10 (via supertest 7) decodes brotli itself, so the brotli tests assert the decoded text; only zstd is read raw. - `vitest typecheck` became `vitest --typecheck.only`. CI uses actions/checkout, actions/setup-node and pnpm/action-setup at their current majors instead of the deprecated Node 16/20 based ones, and uploads coverage to Codecov via OIDC — the tokenless v3 upload was already being rejected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #30. Runtime code and the published package's dependencies are unchanged — this is tooling only (plus two typing fixes in
src/helper.ts).Versions
Rule of thumb: latest release that still runs on Node 20, because the test matrix deliberately covers the Node 20 runtime floor (and the zstd fallback). Local-only tools (lint-staged, bumpp) take their latest major.
.d.tsbuild needs the JS API.@vitest/eslint-pluginwants ≥ 6, unbuild declares^5.9.2— builds and declarations verified with 6.0^3 || ^4rimraf,@antfu/utils,pnpm(devDep)packageManagerpnpm 8 → 12
packageManager: pnpm@12.23.0, lockfile v6 → v9.pnpm-workspace.yamlnow (pnpm no longer reads them from.npmrc), soignore-workspace-root-checkmoved there and.npmrcis gone.allowBuildsallowsesbuild;simple-git-hooksstays off since the package's ownpreparescript installs the hooks.trustPolicy: no-downgradeadded in chore(deps): update eslint to v10 and @antfu/eslint-config to v10 #30 is now active and flaggedundici-types@6.21.0(dependency of@types/node22, published without provenance after earlier releases had it) → excluded explicitly.minimumReleaseAge: pnpm auto-excluded the just-released Nuxt 4.7.0 packages;minimumReleaseAgeExcludePrunedrops those entries once they're old enough.Code / test changes
Uint8Array<ArrayBufferLike>), which surfaced two real type errors insrc/(identical on TS 5.9): the nativeCompressionStreamtransform is cast like the zlib ones, and zlib's one-shot results are typed asBuffer<ArrayBuffer>so they are a validBodyInit.SuperTest<Test>→TestAgent<Test>(new@types/supertest).vitest typecheck→vitest --typecheck.only --run(the subcommand is gone).CI
actions/checkout,actions/setup-node,pnpm/action-setupat their current majors (v3/v2 were Node 16/20 based and force-migrated with warnings). The test job usespnpm/action-setupinstead ofcorepack enable.@v3upload was already failing on every run (There was an error fetching the storage). It now usescodecov-action@v7with OIDC (id-token: write), which needs no secret. Upload errors still don't fail the job.pnpm install --frozen-lockfiledirectly instead of going through a globalni.Verified locally
pnpm lint✅,pnpm build✅ (incl..d.ts)/server/apiJSON and static assets over raw HTTP for negotiation (br;q=0, gzip→ gzip,gzip;q=0.1, deflate;q=0.9→ deflate, allq=0→ identity),Vary: Accept-Encodingand correctContent-Length.